package com.yeren.string;
/**
 * trim()方法，用于去除字符串两边的“空白”
 * @author Administrator
 *
 */
public class TrimDemo {
	public static void main(String[] args) {
	String str="  hello world    ";
	String trim=str.trim();
	System.out.println(str);
	System.out.println(trim);
	}
}
